<template>
  <ant-modal
    modalWidth="384"
    modalHeight="400"
    :visible="open"
    :modal-title="formTitle"
    :adjust-size="true"
    @cancel="cancel"
  >
    <a-form-model ref="form" :model="form" :rules="rules" slot="content" layout="vertical">
      <a-row :gutter="32">
        <a-col :span="24">
          <a-form-model-item label="采购单编号" prop="purchaseId">
            <a-input v-model="form.purchaseId" placeholder="请输入采购单编号"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="24">
          <a-form-model-item label="入库数量" prop="count">
            <a-input v-model="form.count" placeholder="请输入入库数量"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="24">
          <a-form-model-item label="仓库名称" prop="warehouseName">
            <a-input v-model="form.warehouseName" placeholder="请输入仓库名称"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="24">
          <a-form-model-item label="入库时间" prop="storageTime">
            <a-date-picker
              v-model="form.storageTime"
              valueFormat="YYYY-MM-DD"
              :show-today="true"
              placeholder="选择日期"
              style="width: 100%"
            />
          </a-form-model-item>
        </a-col>
        <a-col :span="24">
          <a-form-model-item label="备注" prop="remark">
            <a-input v-model="form.remark" placeholder="请输入备注"/>
          </a-form-model-item>
        </a-col>
      </a-row>
    </a-form-model>
    <template slot="footer">
      <a-button :disabled="disabled" @click="cancel">
        取消
      </a-button>
      <a-button type="primary" :disabled="disabled" @click="submitForm(true)">
        保存
      </a-button>
    </template>
  </ant-modal>
</template>
<script>
import BusInStorageAddForm from './BusInStorageForm'
export default {
  ...BusInStorageAddForm
}
</script>
